package nicewarm.com.airbansearchanimation;

import android.content.Context;
import android.content.res.Resources;
import android.util.Log;

/**
 * Created by luoxf on 17-3-24.
 */

public class Utils {


    public static int getStatusBarHeight(Context context) {
        Resources resources = context.getResources();
        int resourceId = resources.getIdentifier("status_bar_height", "dimen", "android");
        int height = resources.getDimensionPixelSize(resourceId);
        Log.v("dbw", "Status height:" + height);
        return height;
    }
}
